﻿using ERPWinFormWork.Login;
using ERPWinFormWork.Sales;
using ERPWinFormWork.Produce;
using ERPWinFormWork.Product;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
using ERPWinFormWork.Material;

namespace ERPWinFormWork
{
    internal static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            //await Sales.AppConfig.InitializeAsync();
            //await Produce.AppConfig.InitializeAsyncProduce();
            //await Product.AppConfig.ProdcutInitializeAsync();
            Sales.AppConfig.InitializeAsync().GetAwaiter().GetResult();
            Produce.AppConfig.InitializeAsyncProduce().GetAwaiter().GetResult();
            Product.AppConfig.ProdcutInitializeAsync().GetAwaiter().GetResult();
            Material.MaterialAppConfig.InitializeAsync().GetAwaiter().GetResult();
            Test.TestAPI.TestInitializeAsync().GetAwaiter().GetResult();

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            Application.Run(new LoginForm());
        }


    }
}
